import { Module } from '@nestjs/common';
import { LibsModule } from 'libs/libs.module';
import { NotificationModule } from './modules/notification/notification.module';
import { PFCModule } from './modules/PFC/pfc.module';
import { TypeOrmModule, TypeOrmModuleOptions } from '@nestjs/typeorm';
import { config } from 'config';
import { BotModule } from './modules/bot/bot.module';
import { AppInitService } from './modules/initialization/app.init.service';

@Module({
    imports: [
        LibsModule,
        NotificationModule,
        PFCModule,
        BotModule,
        TypeOrmModule.forRoot(<TypeOrmModuleOptions>config.database),
    ],
    controllers: [],
    providers: [AppInitService],
})
export class AppModule {}
